#ifndef MYLIST_H
#define MYLIST_H

#include <QWidget>
#include <QPainter>
#include <QDir>

class Mylist : public QWidget
{
	Q_OBJECT
public:
	Mylist(const int h = 120, const int w = 220);
	void prev(); 
	void next();
	const QString & current();
protected:
//	void keyPressEvent(QKeyEvent *event);
	void paintEvent ( QPaintEvent * event );
public slots:
	void reloadList();
signals:
	void currentIndexChanged(const QString &);
private:
	QDir * list;
	QStringList filters, l;
	int cur;
};
#endif
